package com.lei.day05lx;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;

public class Main2Activity extends AppCompatActivity {

    private StandardGSYVideoPlayer stand;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        initView();
        stand.setUp("http://ivi.bupt.edu.cn/hls/cctv6hd.m3u8",true,"CCTV-6");
        stand.startPlayLogic();
    }

    private void initView() {
        stand = (StandardGSYVideoPlayer) findViewById(R.id.stand);
    }
}
